package com.qiku.vo;

import com.qiku.entity.Comment;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentVo {
    private Long id;

    /**
     * 文章id
     */
    private Long articleId;

    /**
     * 根评论id
     */
    private Long rootId;

    /**
     * 评论内容
     */
    private String comment;

    /**
     * 所回复的目标评论的userId
     */
    private Long toCommentUserId;
    private String toCommentUserName;

    /**
     * 回复目标评论
     */
    private Long toCommentId;

    private Long createBy;

    private Date createTime;

    private String userName;

    private List<CommentVo> children;

}
